package com.nacos.web.feign;

import com.nacos.test.utils.JSONResult;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 项目名称：nacos_parent
 * 类 名 称：PersonFeign
 * 类 描 述：TODO
 * 创建时间：2020/5/18 17:23
 * 创 建 人：Administrator
 */
@FeignClient("nacos-test")
public interface PersonFeign {

    @GetMapping("/person/{id}")
    public JSONResult getPersonById(@ApiParam(name = "id",value = "用户id",required = true) @PathVariable("id") Integer id);

    @GetMapping("/person/getIPAndPort")
    public String getIPAndPort();

    @GetMapping("/user")
    public JSONResult queryAll();
}
